<?php
/*$this->dojo()->enable();
$errorsMessages = $this->form->getMessages(); 
// Metodo para verificar variavel de erros
//var_dump($this->form->getMessages()); 
if (isset($errorsMessages['login']['isEmpty'])) {
    echo 'Username is required field.';
}
if (isset($errorsMessages['senha']['isEmpty'])) {
    echo 'Password is required field.';
}
if (isset($errorsMessages['senha']['stringLengthTooShort'])) {
    echo 'Password must be more then 6 chars.';
}
echo $this->form;*/
$this->jQuery()->enable();
$this->headLink()->prependStylesheet('/js/jquery/css/themes/base/jquery.ui.all.css');
$this->headScript()	->appendFile('/js/jquery/ui/jquery.ui.core.js')
					->appendFile('/js/jquery/ui/jquery.ui.widget.js')
					->appendFile('/js/jquery/ui/jquery.ui.button.js');					
$this->headScript()->appendScript("
$(document).ready(function(){
		$('input#Entrar').button();		
 	});
 	
 	
");

?>
<span id="erro-login"><?php echo $this->flashMessenger();?></span>
<div id="box-bg-img-login">
	<div id="box-login">
		<div id="box-img-login"></div>
		
			<form action="<?php echo $this->form->getAction();?>" method="<?php echo $this->form->getMethod(); ?>" enctype="<?php echo $this->form->getEnctype(); ?>">
			 <fieldset class="field-login">
			  		 <legend>Identifique-se</legend>
			   		 <table width="300" border="0" cellspacing="2" cellpadding="0">
			  		 	<tr>    
			   			 	<td><?php echo $this->form->login; ?></td>
			  			</tr>
			  			<tr>
			   				<td><?php echo $this->form->senha; ?> </td>
			 			</tr> 			
					 </table> 
					  <?php echo $this->form->submit; ?>  
			 </fieldset>
			 </form>
			 
		<div id="box-esqueci-senha"><a class="opcoes" href="<?php echo $this->url(array(
						'action' => 'recuperar-senha', 
						'controller' => 'autenticacao',
						'module' => 'default', 
						));
					?>" >Não consegue acessar sua conta?</a></div>
	</div>
</div>

